<#if tableClass.basePackageName?exists>
package ${tableClass.basePackageName}.manager;
</#if>
import org.springframework.transaction.annotation.Transactional;

import ${tableClass.basePackageName}.dao.${tableClass.className}Dao;
import ${tableClass.basePackageName}.dto.${tableClass.className}Dto;
import ${tableClass.basePackageName}.model.${tableClass.className};

import ${tableClass.baseStructPackageName}.dto.Pagination;


@Transactional
public class ${tableClass.className}ManagerImpl implements ${tableClass.className}Manager {
	private static final long serialVersionUID = 1L;
	private ${tableClass.className}Dao ${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao;

	public Pagination find${tableClass.className}ListByPg(${tableClass.className}Dto dto) {
		return ${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao.findObjectsWithPg(dto);
	}
	
	public ${tableClass.className} get(Long id) {
		return ${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao.get(id);
	}

	public void remove(Long id) {
		${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao.remove(id);
	}

	public void save(${tableClass.className} model) {
		${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao.save(model);
	}
	
	public void updateSelective(${tableClass.className} model) {
		${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao.updateSelective(model);
	}

	public void set${tableClass.className[0]?upper_case + tableClass.className[1..]}Dao(${tableClass.className}Dao ${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao) {
		this.${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao = ${tableClass.className[0]?lower_case + tableClass.className[1..]}Dao;
	}

}
